package com.gr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("auction_user")//关联表表名
public class User implements Serializable {
    @TableId(value = "userId",type = IdType.AUTO)//主键关联到表中哪个字段,主键自增，操作不管
    private Integer id;
    @TableField("userName")
    private String name;
    @TableField("userpassword")
    private String pwd;
    //user_isadmin  单词单词间用_不能写Is
    private Integer userisadmin;//要小写，mysql和java开发不同，不区分大小写
}
